#!/bin/bash 

privilege_escalation="sudo "

dir_path=$HOME/.cache/xoronos
if [ -d "$dir_path" ]; then
    cmd="rm -r $dir_path"
    echo "$cmd" ; eval "$cmd"
fi

dir_path=$HOME/.local/xoronos
if [ -d "$dir_path" ]; then
    cmd="rm -r $dir_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrntranslate-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnserver-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=../build/bin/xrnperm-hash-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnarchive-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnlib-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnlib-lexer-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnlib-128-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnlib-256-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

dir_path=/usr/lib/xoronos
if [ -d "$dir_path" ]; then
    cmd="$privilege_escalation rm -r $dir_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/etc/bash_completion.d/xrnserver-cli-autocomplete.sh
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/etc/bash_completion.d/xrnarchive-cli-autocomplete.sh
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/etc/bash_completion.d/xrnlib-cli-autocomplete.sh
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/etc/bash_completion.d/xrnconv-cli-autocomplete.sh
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/share/pandoc/data/templates/xoronos.tex
if [ -e "$file_path" ] ; then
    cmd="$privilege_escalation rm $file_path"
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/lib/xoronos/py/splitjoin.cpython*
if [ -e $file_path ] ; then
    cmd="$privilege_escalation rm $file_path "
    echo "$cmd" ; eval "$cmd"
fi

file_path=/usr/local/bin/xrnconv-cli
if [ -e "$file_path" ]; then
    cmd="$privilege_escalation rm $file_path "
    echo "$cmd" ; eval "$cmd"
fi


